NAME=test-libfgs
SRC=test-libfgs.c
CC=gcc

CFLAGS=-I ../fgs-lib/
LIBS=-L../fgs-lib/ -lfgs-game -Wl,-rpath,../fgs-lib

OBJS=$(SRC:.c=.o)
OPTS=-W -Wall

all: $(OBJS)
	$(CC) $(OBJS) $(LIBS) -o $(NAME)

%.o: %.c
	$(CC) $(OPTS) $(CFLAGS) -c $<

run: $(NAME)
	./$(NAME)

clean:
	rm -f $(OBJS) *~

fclean: clean
	rm -f $(NAME)
